package com.hoyue.classroom.bean;

import javax.persistence.Transient;
import java.util.Date;

/**
 * @author 空白
 * @version 1.0
 * Create by 2019/09/05 09:31
 */
public class Score {

    // 序号
    private Integer id;

    // 学生id
    private Integer userId;

    // 成绩类型代号
    private int title;

    // 成绩
    private double score;

    // 教师id
    private Integer teacherId;

    // 创建时间
    private Date createTime;

    // 修改时间
    private Date updateTime;

    // 学生学号
    @Transient
    private String studentNo;

    // 学生名称
    @Transient
    private String userName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public int getTitle() {
        return title;
    }

    public void setTitle(int title) {
        this.title = title;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getStudentNo() {
        return studentNo;
    }

    public void setStudentNo(String studentNo) {
        this.studentNo = studentNo;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "Score{" +
                "id=" + id +
                ", userId=" + userId +
                ", title=" + title +
                ", score=" + score +
                ", teacherId='" + teacherId + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", studentNo='" + studentNo + '\'' +
                ", userName='" + userName + '\'' +
                '}';
    }
}
